package com.summary.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 请假业务对象 sys_clocking
 * 
 * @author NightWalk
 * @date 2023-12-26
 */
public class Clocking extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long clockingId;

    /** 用户id(请假的人id) */
    @Excel(name = "用户id(请假的人id)")
    private Long userId;

    /** 请假时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请假时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date clockingTime;

    /** 请假理由 */
    @Excel(name = "请假理由")
    private String type;

    /** 请假/年 */
    @Excel(name = "请假/年")
    private String year;

    /** 请假/月 */
    @Excel(name = "请假/月")
    private String month;

    /** 请假/日 */
    @Excel(name = "请假/日")
    private String day;

    /** 请假的人 */
    @Excel(name = "请假的人")
    private String nickName;

    public void setClockingId(Long clockingId) 
    {
        this.clockingId = clockingId;
    }

    public Long getClockingId() 
    {
        return clockingId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setClockingTime(Date clockingTime) 
    {
        this.clockingTime = clockingTime;
    }

    public Date getClockingTime() 
    {
        return clockingTime;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setYear(String year) 
    {
        this.year = year;
    }

    public String getYear() 
    {
        return year;
    }
    public void setMonth(String month) 
    {
        this.month = month;
    }

    public String getMonth() 
    {
        return month;
    }
    public void setDay(String day) 
    {
        this.day = day;
    }

    public String getDay() 
    {
        return day;
    }
    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getNickName()
    {
        return nickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("clockingId", getClockingId())
            .append("userId", getUserId())
            .append("clockingTime", getClockingTime())
            .append("remark", getRemark())
            .append("type", getType())
            .append("year", getYear())
            .append("month", getMonth())
            .append("day", getDay())
            .append("nickName", getNickName())
            .toString();
    }
}
